package org.bigdata.framework.core.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2019-11-19
 */
@TableName("`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 关联前端用户表
	 */
	@TableField(value="member_id")
	private Integer memberId;

	/**
	 * 支付方式（we_chat、alipay）
	 */
	@TableField(value="pay_way")
	private String payWay;

	/**
	 * 状态（0-支付成功 1-待支付）
	 */
	private Integer status;

	/**
	 * 实际支付金额
	 */
	@TableField(value="pay_price")
	private BigDecimal payPrice;

	/**
	 * 订单日期
	 */
	@TableField(value="create_time")
	private String createTime;

	/**
	 * 创建ip地址
	 */
	@TableField(value="create_ip_address")
	private String createIpAddress;

	/**
	 * 订单号（分布式ID号）
	 */
	@TableField(value="order_number")
	private String orderNumber;

	/**
	 * 类型（0-课程 1-微课 2-直播）
	 */
	private Integer type;
	
	/**
	 * 资源id
	 */
	@TableField(value="resource_id")
	private Integer resourceId;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public BigDecimal getPayPrice() {
		return payPrice;
	}

	public void setPayPrice(BigDecimal payPrice) {
		this.payPrice = payPrice;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateIpAddress() {
		return createIpAddress;
	}

	public void setCreateIpAddress(String createIpAddress) {
		this.createIpAddress = createIpAddress;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getResourceId() {
		return resourceId;
	}

	public void setResourceId(Integer resourceId) {
		this.resourceId = resourceId;
	}

}
